import os
from pathlib import Path

# 基础配置
class Config:
    DEBUG = False
    TESTING = False
    JSON_AS_ASCII = False
    
    # 爬虫项目路径配置
    SPIDER_ROOT = str(Path(__file__).parent.parent.parent / "spider")
    SPIDER_MAIN = os.path.join(SPIDER_ROOT, "main.py")

class DevelopmentConfig(Config):
    DEBUG = True

class ProductionConfig(Config):
    pass